/**
 * 
 */
package com.wistech.search.solr.score;

import java.io.IOException;
import java.io.Serializable;

import org.apache.lucene.index.IndexReader;

/**
 * @author Liuye
 * 
 */
public interface Xscorer extends Serializable {

	/**
	 * 评分
	 * 
	 * @param doc
	 *            文档id
	 * @param keywordScore
	 *            关键字score
	 * @return
	 */
	float score(int doc, float keywordScore);

	void setNextReader(IndexReader reader, int base) throws IOException;
}
